<present name="field_list" >
<div class="sep"></div>
<form name="form1" method="post" action="__APP__/Form/save" onsubmit="return onSubmit();">
	<input name="form_id" type="hidden" value="{$form_id}" />
    <input name="sort_id" type="hidden" value="{$sort.id}" />
  <table width="100%" border="0" cellspacing="1" cellpadding="4" bgcolor="#D0DBE1">
    <tr>
      <td colspan="2" align="center" bgcolor="#FFFFFF"><strong>{$form_title}</strong></td>
    </tr>
    <volist name="field_list" id="fv">
    <tr>
      <td width="10%" align="right" bgcolor="#FFFFFF"><strong>{$fv.fname}：</strong></td>
      <td width="90%" bgcolor="#FFFFFF">
      <eq name="fv.ftype" value="text" >
      	<input type="text" name="{$fv.fen}" value="{$fv.fvalue}" />
      </eq>
      <eq name="fv.ftype" value="select" >
      	<select name="{$fv.fen}">
        	<volist name="fv.fval_list" id="v" >
        	<option value="{$v}">{$v}</option>
            </volist>
        </select>
      </eq>
      <eq name="fv.ftype" value="radio" >
      	<volist name="fv.fval_list" id="v" >
        	<input name="{$fv.fen}" type="radio" value="{$v}" />{$v}&nbsp;
        </volist>
      </eq>
      <eq name="fv.ftype" value="checkbox" >
      	<volist name="fv.fval_list" id="v" >
        	<input name="{$fv.fen}[]" type="checkbox" value="{$v}" />{$v}&nbsp;
        </volist>
      </eq>
      <eq name="fv.ftype" value="textarea" >
      	<textarea name="{$fv.fen}" cols="40" rows="8" >{$fv.value}</textarea>
      </eq>
      </td>
    </tr>
    </volist>
    <tr>
      <td align="right" bgcolor="#FFFFFF"><strong>验证码：</strong></td>
      <td bgcolor="#FFFFFF"><span class="user_main_input">
        <input name="vcode" type="text" id="vcode" size="8" maxlength="4" />
        <span class="user_main_text"><img src="__APP__/Form/vcode" alt="点击刷新验证码" name="vcodeImg" border="0" align="middle" id="vcodeImg" style="cursor:pointer" onclick="refreshVcode()" /></span></span>
        <a href="javascript:void(0)" onclick="refreshVcode()" >看不清？换一张图片</a>
        </td>
    </tr>
    
    <tr>
      <td colspan="2" align="center" bgcolor="#FFFFFF"><input type="submit" name="btn_submit" id="btn_submit" value="  提交  " >
        &nbsp;&nbsp;
        <input type="reset" name="button2" id="button2" value="  重新填写  "></td>
      </tr>
    
  </table>
</form>
<script type="text/javascript">
function refreshVcode()
{

	//重载验证码
	var timenow = new Date().getTime();
	$('#vcodeImg')[0].src = '__APP__/Form/vcode/'+timenow;

}
function onSubmit() {
	
	$('#btn_submit').attr('disabled','disabled');
	return true;
}
</script>
</present>